<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=PcfxAcbUKxVenCBVyGqgFDDLoi5gN7uS"></script>
    <title>步行导航检索</title>
    <style>
        html,body{
            width: 100%;
            height: 100%;
            padding: 0;
            margin: 0;
        }
        #allmap{
            width: 100%;
            height: 100%
        }
        #result{
            position: fixed;
            top: 10px;
            left: 20px;
            width: 250px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            background: #fff;
            box-shadow: 0 2px 6px 0 rgba(27, 142, 236, 0.5);
            border-radius: 7px;
            z-index: 99;
        }
        
        
    </style>
</head>
<body>
	<div id="container"></div>
    <ul class="drawing-panel" style="z-index: 99;">
        <li class = "btn" onclick = "pauseAni()">暂停</li>
        <li class = "btn" onclick = "continueAni()">继续</li>
    </ul>
	
    <div id='allmap'></div>
    <div id='result'>从重庆理工大学到重庆医科大学的步行导航</div>
    <script>
        var map = new BMapGL.Map("allmap");
        map.enableScrollWheelZoom();
        map.centerAndZoom(new BMapGL.Point(106.798077,29.716851), 19);
        var walking = new BMapGL.WalkingRoute(map, {renderOptions:{map: map, autoViewport: true}});
        walking.search('重庆理工大学', '重庆医科大学');
    </script>
</body>
</html>